package com.study.行为型模式.迭代器模式;

import java.util.ArrayList;

public class Client {

    public static void main(String[] args) {

        ArrayList<College> colleges = new ArrayList<>();

        ComputerCollege computerCollege = new ComputerCollege();
        InfoCollege infoCollege = new InfoCollege();

        colleges.add(computerCollege);
        colleges.add(infoCollege);

        PrintInfo printInfo = new PrintInfo(colleges);
        printInfo.printCollege();
    }
}
